﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using cms.libs;

namespace CMS
{
    public partial class ReportFundMoney : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }
        protected void BindData()
        {
            long PrizeFund = 0;
            int Jackpot = 0;
            long Profit = 0;
            new DBAccountReport().GetFundMoney(1, ref PrizeFund, ref Jackpot, ref Profit);

            ltOutput1.Text = "<b>Quỹ trả thưởng:</b> " + PrizeFund.ToString("n0") + " <br/><b>Jackpot:</b> " + Jackpot.ToString("n0") + " <br /><b>Lợi nhuận:</b> " + Profit.ToString("n0");

            new DBAccountReport().GetFundMoney(2, ref PrizeFund, ref Jackpot, ref Profit);

            ltOutput2.Text = "<b>Quỹ trả thưởng:</b> " + PrizeFund.ToString("n0") + " <br/><b>Jackpot:</b> " + Jackpot.ToString("n0") + " <br /><b>Lợi nhuận:</b> " + Profit.ToString("n0");

            new DBAccountReport().GetFundMoney(3, ref PrizeFund, ref Jackpot, ref Profit);

            ltOutput3.Text = "<b>Quỹ trả thưởng:</b> " + PrizeFund.ToString("n0") + " <br/><b>Jackpot:</b> " + Jackpot.ToString("n0") + " <br /><b>Lợi nhuận:</b> " + Profit.ToString("n0");

        }

        protected void drpRoom_SelectedIndexChanged(object sender, EventArgs e)
        {
            BindData();
        }
    }
}